﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassCommon
{
    public class DataFormatHelper
    {
        /// <summary>
        /// 0-6 星期一 - 星期日
        /// </summary>
        /// <param name="num"></param>
        /// <returns></returns>
        public static string WeekStrWithNum(int num)
        {
            switch (num)
            {
                case 0 :
                    return "星期一";
                case 1:
                    return "星期二";
                case 2:
                    return "星期三";
                case 3:
                    return "星期四";
                case 4:
                    return "星期五";
                case 5:
                    return "星期六";
                case 6:
                    return "星期日";
                default:
                    return "不晓得是星期几";
            }
        }
    }
}
